package eng;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class Window
{
    
    private JFrame window;
    private JPanel panel;
    
    public Window()
    {
        Engine eng = new Engine();
        this.panel = eng.getRenderer().getRenderBuffer();
        
        this.window = new JFrame("ReTrace");
        this.window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.window.setSize(this.panel.getWidth(), this.panel.getHeight() + 22);
        this.window.setResizable(false);
        this.window.getContentPane().add(this.panel);
        this.window.setVisible(true);
        
        eng.run();
    }
    
    
    
}
